package game.view.console;

import java.util.Scanner;

public class UserDataRetriever {
	
	private static Scanner scanner = new Scanner(System.in);
	
	public static String showStartMenu ()
	{
		
//		Scanner scanner = new Scanner(System.in);
		
		System.out.println("\n\n");
		
		System.out.println("\t Where would you like to get the game settings from?\n\n");	
		System.out.println("\t 1) Enter it manually\n");
		System.out.println("\t 2) Load settings from a XML file\n");
		System.out.println("\t 3) Quit\n");
		
		String input = scanner.nextLine();
//		scanner.close();

		return input;
		
	}
	
	public static String getCorrctedUserInput ()
	{
		System.out.println("\n\n");
		System.out.println("\t Please enter a valid input\n\n");
		
		return showStartMenu();
	}
	
	public static void showQuitGameScreen ()
	{
		System.out.println("\t Thanks for playing");
	}
	
	public static String getXmlFilePathFromUser (String errorMessage)
	{
		System.out.println(errorMessage);
		System.out.println("\t Please enter the xml file name (full path) you want to load:\n");
		
		String xmlFileName = scanner.nextLine();
//		scanner.close();
		
		return xmlFileName;
	}

}
